﻿function ClientDoLogin()
{
    loginName=document.getElementById("txtLoginName").value;
    password=document.getElementById("txtPassword").value;
    RetValue = Portal.SODC.IDIS.FLoginWP.ServerSideLogin(loginName, password).value;
    if(RetValue.indexOf("ERROR")!=-1)
    {
        alert(RetValue);
        return;
    }
    window.open("IDIS-Home.aspx", "_self");
}

function ClientDoChangePasword()
{
    OldPassword=document.getElementById("txtOldPassword").value;
    password=document.getElementById("txtPassword").value;
    rePassword=document.getElementById("txtRePassword").value;
    RetValue = ChangePassword.ServerSideChangePassword(OldPassword, password,rePassword).value;
    if(RetValue.indexOf("ERROR")!=-1)
    {
        alert(RetValue);
        return;
    }
    window.open("Default.aspx","_self");
}